package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.time.LocalDate;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_return")
public class OrderReturnDo extends Model<OrderReturnDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("warehouse_id")
    private Long warehouseId;


    @TableField("status")
    private Integer status;

    @TableField("sales_plat_form")
    private String salesPlatForm;

    /**
     * 清点状态 1不可以清点 2可以清点
     */
    @TableField("check_status")
    private Integer checkStatus;

    /**
     * 上架状态 1不可以上架 2可以上架
     */
    @TableField("put_status")
    private Integer putStatus;

    /**
     * 退件单号
     */
    @TableField("return_no")
    private String returnNo;

    /**
     * 退件类型 1平台退件 2买家退件 3服务商退件
     */
    @TableField("return_type")
    private Integer returnType;

    /**
     * 预计到达时间
     */
    @TableField("expected_date")
    private Date expectedDate;

    /**
     * 移除单号
     */
    @TableField("remove_no")
    private String removeNo;

    /**
     * 参考单号
     */
    @TableField("refer_order_no")
    private String referOrderNo;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 收获备注
     */
    @TableField("warehouse_remark")
    private String warehouseRemark;

    /**
     * 英制in 公制 cm
     */
    @TableField("size_unit")
    private String sizeUnit;

    /**
     * wms单位
     */
    @TableField("wms_size_unit")
    private String wmsSizeUnit;

    @TableField("company_id")
    private Long companyId;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private Long updateBy;


    @TableField("submit_time")
    private Date submitTime;

    @TableField("submit_by")
    private Long submitBy;


    @TableField("sign_time")
    private Date signTime;

    @TableField("sign_by")
    private Long signBy;

    /**
     * 清点完成时间
     */
    @TableField("inventoried_time")
    private Date inventoriedTime;

    @TableField("inventoried_by")
    private Long inventoriedBy;
    /**
     * 完成时间
     */
    @TableField("putaway_time")
    private Date putawayTime;

    @TableField("putaway_by")
    private Long putawayBy;


    @TableField("cancel_time")
    private Date cancelTime;

    @TableField("cancel_by")
    private Long cancelBy;


    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
